Fixed notice error given

Fixed the notice given by nabulsi, as well as the DEBUG notice when
check if defined.