Please collapse these two lines. `if (condition) return true; return false` can be simplified to `return condition`