Checks if the item contains metadata key with expected_type.
key
expected_type
a SessionItem
the metadata key
the VariantType to check for key
true if a value was found for key matching expected_typed; otherwise false is returned.
expected_typed