Move constant check in better place

debug_backtrace is slow function,
so, it is better not to call it when print_var is disabled.
Also, I have decided to remove check from the method
to left way to force debug output.