PHP: Use short ternary operator (?:) where possible