Fixed any() for empty collections.

Found this bug where an empty collection will throw an exception if we use any() on it.

This has been fix and a test has been written to test against this.