check if data is path