Can you either implement the check above this line or make $method public and remove setMethod() please?