Checking if path is provided