code: function getChildrenByAttribute($attribute, $value, $mode = 'equals', $compare = 'total', $recursive = true) {
  		if ($this->childCount() < 1) {
  			return array();
  		}
  
  		$mode = explode(' ', strtolower($mode));
  		$match = ((isset($mode[1]) && ($mode[1] === 'not')) ? 'false' : 'true');
  
  		return $this->getChildrenByMatch(
  			array(
  				'attributes' => array(
  					$attribute => array(
  						'operator_value' => $mode[0],
  						'value' => $value,
  						'match' => $match,
  						'compare' => $compare
  					)
  				)
  			),
  			$recursive
  		);
  	}
docs: Finds children that match a certain attribute
  @param string $attribute
  @param string $value
  @param string $mode Compare mode, "equals", "|=", "contains_regex", etc.
  @param string $compare "total"/"namespace"/"name"
  @param bool|int $recursive
  @return array