Shorter syntax use && for and use || for or
Convert to new bindShared method on container.
Change visibility of mergeRules.
Use array_get in validateSame.