Some people have the opinion that "to be" is redundant so better to leave it out, but it is the writer's choice. Both are correct and they mean exactly the same thing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.