Added isset guard that was missing