Changed performSelector to respondsToSelector to fix CocoaPods issue