We can use path_load here because panels don't have URL aliases (the function just returns false).  There may be a better way to validate the paths here.