These are two functions to manipulate PHP objects.
The first function is similar to array_merge function in that it merges two objects based on an index.
The second function in_object also acts like in_array to which it checks if a certain index exists in an array at a specific value.
Hopefully someone finds it helpful.