public function calcMin($option, array $options)
    {
        $min = (isset($options[$option]) ? (int)$options[$option] : 0);

        if (isset($options['instances']) && is_array($options['instances'])) {
            foreach ($options['instances'] as $instance) {
                $value = (isset($instance[$option]) ? (int)$instance[$option] : 0);

                if ($value > $min) {
                    $min = $value;
                }
            }
        }

        return $min;
    }