Constraints::hasOption is a static function