Checking for nullable listener