Since someone had to remove the lid off of the cookie jar, we know the culprit had to be human, leaving the two brothers as suspects. We know that Joey is small, as he rides a tricycle. Therefore, he was probably small enough to squeeze through the doggie door, into the kitchen, as well.