Remove unneeded if statement

Change if(bool) return true; return false; to return bool, as it should
give the same results, but with less code.