Improve logic flow of Validator::getRules