Meaning of "to be" in this sentence

You should consider the word "in" to have a better understanding, therefore the sentence would be "to be in" that is a very common idiom to refer to something that is inside somewhere.

I think this link will help you https://idioms.thefreedictionary.com/be+in