fix isset condition