check for method existence on prototype
fix missing = typo
Merge pull request #3 from gavinhungry/master

Check for methods on prototype; missing =