Protect when path is empty