fixed isset statement