Add brackets to single-line if statement.

Added extra brackets to a single-line if statement for better code consistency.