Changed isset to (not)empty