Refactoring method from inXxx to isXxx