Fixed missing isset, causing a notice