Removed exceptions when isArray collection returns false.