Use interface_exists to check if interface exists.