public static function FilterArray($targetArray, $valuesToRemove) {
        if (is_array($valuesToRemove)) {
            foreach ($valuesToRemove as $value) {
                if (($key = array_search($value, $targetArray)) !== false) {
                    unset($targetArray[$key]);
                } else {
                    //todo: log that the $value to remove was not found.
                }
            }
        } else {
            //todo: log that the call was made but that $valuesToRemove was not an array.
        }
        return $targetArray;
    }