Made empty array trigger a query equivalent to a no-op. Added documentation about the behaviour.