chore: add spaces between property and value
chore: use lowercase color values
chore: remove nesting
chore: return boolean value to test against

Original function name suggested it returned a boolean value. This updates the function to do just that. Then the result is tested for and a class applied instead of just calling the fucntion.