Define context only if we have a selector.