fix isset checking