Reduce all loops and `if` statements to a single line if possible in order to remove the brackets.