" are both fine. " Aside from the lack of the word "if" these sentences are fine, too. I believe there is a slight difference between each version of each pair of sentences, yet they are used essentially the same way.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.