function isControlledProp(props, key) {
  return props[key] !== undefined
}
This determines whether a prop is a "controlled prop" meaning it is
state which is controlled by the outside of this component rather
than within this component.

@param {Object} props The props that may contain controlled values.
@param {String} key the key to check
@return {Boolean} whether it is a controlled controlled prop