Update Validator.php

Made the validation check on validateAccepted() a bit cleaner.