I think `!empty($options['required']) || !isset($options['required'])` can be expressed as `empty($options['required'])`, but if that is not the other those two operands should be grouped then I think you need to make that line more clear