public static function exists(RoutingTable $annotations = null, $entityAlias, $method) {
        return !empty($annotations) && $annotations->get($entityAlias) !== null && $annotations->get($entityAlias)->$method() !== null;
    }
public static function exists(RoutingTable $annotations = null, $entityAlias, $method) {
        return !empty($annotations) && $annotations->get($entityAlias) !== null && $annotations->get($entityAlias)->$method() !== null;
    }
public static function exists ( RoutingTable $ annotations = null , $ entityAlias , $ method ) { return ! empty ( $ annotations ) && $ annotations -> get ( $ entityAlias ) !== null && $ annotations -> get ( $ entityAlias ) -> $ method ( ) !== null ; }
checks if the annotation exists

@param  RoutingTable $annotations
@param  string       $entityAlias
@param  string       $method
@return boolean
checks if the annotation exists