use identity operator + code consistency
use identity operator + code consistency

- use identity operator === to check string
- use single quotes for consistency 
- simplify code using the ternary operator
silverstripe/silverstripe-cms,silverstripe/silverstripe-cms