/// Apply styles to a module if a passed option returns true
///
/// @param {arglist} $option-path - The option which you wish to test against
@mixin option($option-path...) {
  $value  : map-get-deep($config, $option-path...);
  $option : nth($option-path, length($option-path)) !global;

  // Output the styles if the option is enabled
  @if value-enabled($value) {
    @content;

    @include parse-cq($value);
  }

  // Create a modifier for the option if it is not enabled
  // by default
  @if $extendOptions and not value-enabled($value) {
    @include modifier($option) {
      @content;

      @include parse-cq($value);
    }
  }
}