check if data exists before parsing