Is it possible to for perch if to check an output value?