Improve PHP syntax in Bootstrap Walker