For readability, having if at the beginning is a bit better, as this is already a long line.