Bug 25668: Simplify capabilities.has