This was more efficient as it was originally written because the isObject test is necessary only when there's a beforeMethod.