Fixed typo in call to is.func. Corrected and renamed method to is.method for greater clarity.