checking for valid backtrace