check if path is supplied