Adds respondsToSelector check
Merge remote-tracking branch 'upstream/master'