consolidating hasMethod filter