Make sure returned value is a boolean