Fix the has_bin implementation, able to detect embeded object