Remove additional "if (!method.key)" check.