Added missing isset() check