private static function hasElement( $a, $b, $elementName )
	{
		return
			( isset( $a[ $elementName ] ) && isset( $b[ $elementName ] ) ) ||
			( ! isset( $a[ $elementName ] ) && ! isset( $b[ $elementName ] ) );
	}