Added methods for checking if a class/object directly implements a selector.