This check is done by OptPath so you don't need to repeat this check here.