Test for values of $warning and $critical before try emitting them