fixing PHP warning/notice for not checking if it is set