Better close condition for notifications block