InstantAnswer.pm - replace try-catch block with conditional block