protected function _validateFrame($frame) {
    if(!is_array($frame) || count($frame) !== 1 || !is_object($frame[0])) {
      throw new JsonLdException(
        'Invalid JSON-LD syntax; a JSON-LD frame must be a single object.',
        'jsonld.SyntaxError', null, array('frame' => $frame));
    }
  }
protected function _validateFrame($frame) {
    if(!is_array($frame) || count($frame) !== 1 || !is_object($frame[0])) {
      throw new JsonLdException(
        'Invalid JSON-LD syntax; a JSON-LD frame must be a single object.',
        'jsonld.SyntaxError', null, array('frame' => $frame));
    }
  }
protected function _validateFrame ( $ frame ) { if ( ! is_array ( $ frame ) || count ( $ frame ) !== 1 || ! is_object ( $ frame [ 0 ] ) ) { throw new JsonLdException ( 'Invalid JSON-LD syntax; a JSON-LD frame must be a single object.' , 'jsonld.SyntaxError' , null , array ( 'frame' => $ frame ) ) ; } }
Validates a JSON-LD frame, throwing an exception if the frame is invalid.

@param array $frame the frame to validate.
Validates a JSON - LD frame throwing an exception if the frame is invalid .