Both are fine. The first sounds a little unusual because we more often use the second-- existential `there` moves the stress to later in the sentence, which is where we usually like it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.