Fixed DefinitionList::hasMethod()

The method DefinitionList::hasMethods() was simply duplicated to create method DefinitionList::hasMethod() and therefore it did not work correctly.