Check if selector exists before using it, prevents crash on iOS 4