Adds path not found check