Fix isset checking