#pragma to ignore the undeclared selector warning
checking for nil to prevent crash
Merge pull request #29 from kgn/master

Disabled a missing selector warning and added a nil check to prevent a crash