original_string: protected function ensure_instances_exist($region) {
          $this->check_region_is_known($region);
          if (!array_key_exists($region, $this->blockinstances)) {
              $this->blockinstances[$region] =
                      $this->create_block_instances($this->birecordsbyregion[$region]);
          }
      }
code: protected function ensure_instances_exist($region) {
          $this->check_region_is_known($region);
          if (!array_key_exists($region, $this->blockinstances)) {
              $this->blockinstances[$region] =
                      $this->create_block_instances($this->birecordsbyregion[$region]);
          }
      }
code_tokens: protected function ensure_instances_exist ( $ region ) { $ this -> check_region_is_known ( $ region ) ; if ( ! array_key_exists ( $ region , $ this -> blockinstances ) ) { $ this -> blockinstances [ $ region ] = $ this -> create_block_instances ( $ this -> birecordsbyregion [ $ region ] ) ; } }
docstring: Ensure block instances exist for a given region
  
  @param string $region Check for bi's with the instance with this name
docstring_tokens: Ensure block instances exist for a given region