correctly check for non-empty paths