In Modern Hebrew, the object of יש and אין is treated as if it were a direct object.
In Biblical Hebrew, you'll sometimes see it used for definite subjects of passive or stative verbs when the subject precedes the verb for emphasis. Sometimes, not always.