Changing gas cost to zero at stackunderflow

What do you mean by removing if. I need to return a bool, otherwise I get warnings. I need an if. What exactly is your suggestion?