Improved mandatory validation, take into account array value