Personally for all these simple things, I would simple it down to a ternary operation for code simplicity. Always keep in mind code size.