added methot to check if an element is in an array
Its possible to add entities to groups. Groups will be automatically added to the public groups.