Refactor: moving all small _checkValidPath calculations into single
method