Add a standard method to check whether a class implements an interface.