I could accept both of those examples with or without the comma. A comma is often used to break up a longer sentence. If you read #2 aloud the comma indicates the best place to take a breath.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.