check if exists before parsing