Changed getMethod to isMethod