Added option to check if need to compare object prototypes