fix isset check