if() can be simplified to return the condition instead of if() construction that return boolean values based on conditions.