Get list of entities where != 'specific guid'

Hello,

I want function to get a list of entities:

But I need to get a list of entities where guid != 'page_guid'.

The purpose of this function is to get a list of similar products entities on a page.

When viewing a product, I uses basic elgg_get_entities_from_metadata that will list similar products based on container_guid. But the list also contain the entity being viewed on the page. So I want my list to exclude the currently viewed product. This is why I want to get a list of entities where != 'current page guid'.

Can anybody help me on how to right such a function.