Update Hooks.cpp

Needs to check if Object is a container before highlighting it in green.