fix check for method type Issue #87

Statement was always true.