check for method existence on prototype
fix missing = typo