original_string: protected function removeMissingValues($data)
      {
          $numericKeys = true;
  
          foreach ($data as $key => $value) {
              if (($value instanceof PotentiallyMissing && $value->isMissing()) ||
                  ($value instanceof self &&
                  $value->resource instanceof PotentiallyMissing &&
                  $value->isMissing())) {
                  unset($data[$key]);
              } else {
                  $numericKeys = $numericKeys && is_numeric($key);
              }
          }
  
          if (property_exists($this, 'preserveKeys') && $this->preserveKeys === true) {
              return $data;
          }
  
          return $numericKeys ? array_values($data) : $data;
      }
code: protected function removeMissingValues($data)
      {
          $numericKeys = true;
  
          foreach ($data as $key => $value) {
              if (($value instanceof PotentiallyMissing && $value->isMissing()) ||
                  ($value instanceof self &&
                  $value->resource instanceof PotentiallyMissing &&
                  $value->isMissing())) {
                  unset($data[$key]);
              } else {
                  $numericKeys = $numericKeys && is_numeric($key);
              }
          }
  
          if (property_exists($this, 'preserveKeys') && $this->preserveKeys === true) {
              return $data;
          }
  
          return $numericKeys ? array_values($data) : $data;
      }
code_tokens: protected function removeMissingValues ( $ data ) { $ numericKeys = true ; foreach ( $ data as $ key => $ value ) { if ( ( $ value instanceof PotentiallyMissing && $ value -> isMissing ( ) ) || ( $ value instanceof self && $ value -> resource instanceof PotentiallyMissing && $ value -> isMissing ( ) ) ) { unset ( $ data [ $ key ] ) ; } else { $ numericKeys = $ numericKeys && is_numeric ( $ key ) ; } } if ( property_exists ( $ this , 'preserveKeys' ) && $ this -> preserveKeys === true ) { return $ data ; } return $ numericKeys ? array_values ( $ data ) : $ data ; }
docstring: Remove the missing values from the filtered data.
  
  @param  array  $data
  @return array
docstring_tokens: Remove the missing values from the filtered data .