There is no difference. Just a matter of style.
And the first, named yoda style
In jargon programming, Yoda conditions (also called Yoda notation) are a programming style in which two parts of an expression are referenced in a conditional expression.
null == var var == null . , misspell == ( ) = (), var = null . , null == var misspells null = var, . , . .
Criticism :
, , . ( , , ). " ". .