Check that an array index is defined before accessing it to prevent an E_NOTICE message.