making a bit more efficient the hasFunctor() methods