public function registerScopeMetaBox($postType, $choises)
    {
        if (!is_string($postType)) {
            return WP_Error("Post type variable must be of the type string.");
        }

        if (!is_array($choises)) {
            return WP_Error("Choises variable must be of the type assoc array.");
        }

        if (!function_exists('acf_add_local_field_group')) {
            return WP_Error("Could not find required ACF function acf_add_local_field_group.");
        }

        acf_add_local_field_group(array(
            'key' => 'group_' . substr(md5($postType . '_scope'), 0, 13),
            'title' => __('Scope styling', 'modularity'),
            'fields' => array(
                array(
                    'key' => 'field_' . substr(md5($postType . '_scope'), 0, 13),
                    'label' => __('Select an apperance for this instance of module', 'modularity'),
                    'name' => 'module_css_scope',
                    'type' => 'select',
                    'instructions' => __('By selecting a scope for this class, they will appear in a different way than the standard layout.', 'modularity'),
                    'required' => 0,
                    'conditional_logic' => 0,
                    'wrapper' => array(
                        'width' => '',
                        'class' => '',
                        'id' => '',
                    ),
                    'choices' => $choises,
                    'default_value' => array(
                    ),
                    'allow_null' => 1,
                    'multiple' => 0,
                    'ui' => 0,
                    'ajax' => 0,
                    'return_format' => 'value',
                    'placeholder' => '',
                ),
            ),
            'location' => array(
                array(
                    array(
                        'param' => 'post_type',
                        'operator' => '==',
                        'value' => $postType,
                    ),
                ),
            ),
            'menu_order' => 0,
            'position' => 'side',
            'style' => 'default',
            'label_placement' => 'top',
            'instruction_placement' => 'label',
            'hide_on_screen' => '',
            'active' => 1,
            'description' => '',
        ));

        return true;
    }