null check on path