$collection->valid()

Checks if an element is valid This is needed for the Iterator implementation

  • return (boolean)