Check path is empty or not