original_string: protected function _isChecked($data)
      {
          if (array_key_exists('checked', $data)) {
              return (bool)$data['checked'];
          }
  
          return (string)$data['val'] === (string)$data['value'];
      }
code: protected function _isChecked($data)
      {
          if (array_key_exists('checked', $data)) {
              return (bool)$data['checked'];
          }
  
          return (string)$data['val'] === (string)$data['value'];
      }
code_tokens: protected function _isChecked ( $ data ) { if ( array_key_exists ( 'checked' , $ data ) ) { return ( bool ) $ data [ 'checked' ] ; } return ( string ) $ data [ 'val' ] === ( string ) $ data [ 'value' ] ; }
docstring: Check whether or not the checkbox should be checked.
  
  @param array $data Data to look at and determine checked state.
  @return bool
docstring_tokens: Check whether or not the checkbox should be checked .