We already check if `options` is not `undefined` just above. `options.media` should be enough I think.