she saw how juan had secured the block trash-bin enclosure with chain link across the top and had installed gates behind the swinging metal doors so there was a double entry to protect against the animals escaping .