Optimised checks for existing/non-existing logging