/**
     * @param string $remote_id
     * @param string $cluster_identifier
     * @return array|bool
     */
    protected function removeByRemoteAndCluster( $remote_id = null , $cluster_identifier = null)
    {
        if( is_null( $remote_id ) )
            $remote_id = isset( $_POST['remote_id'] ) ? $_POST['remote_id'] : null;
        if( is_null( $cluster_identifier ) )
            $cluster_identifier = isset( $_POST['cluster_identifier'] ) ? $_POST['cluster_identifier'] : null;

        if( is_null( $remote_id ) || is_null( $cluster_identifier ) )
            return false;
        else
        {
            $res = $this->manageResults( MMSelections::removeFromSelection( $remote_id, $cluster_identifier ) );

            return array( 'facets' => $res['facets'], 'total' => $res['total'] );
        }
    }
 /**
  * @return bool
  * @throws Exception
  */
 public static function selectionRemove()
 {
     if ( !isset($_POST['remote_id']) )
     {
         throw new Exception('remote_id parameter is missing', 7);
     }
     if ( !isset($_POST['cluster_identifier']) )
     {
         throw new Exception('cluster_identifier parameter is missing', 7);
     }
     MMSelections::removeFromSelection($_POST['remote_id'], $_POST['cluster_identifier']);
     return true;
 }