This is not good solution. `S_SN_USER_UNREAD_NOTIFY` always returns some data, but because of unclear data type returned in `socialnet_notify::ntf_notify_count`, there may be empty string, 0 as integer, or null. Anyway, `S_SN_USER_UNREAD_NOTIFY` is always set, and that is wrong. You should use `S_USER_LOGGED_IN` or better `SN_MODULE_NOTIFY_ENABLED`, because not all logged in users may have permissios to use notification system.