Adds helper method to validation trait: isAttributeRequired