LSattribute :: isRequired() : Fixed notice PHP