Traditional grammar say that If I were is the correct form to use in a second conditional. They are trying to lay down the law and tell people what they should say- prescriptive grammar. However, many native speakers say If I was. A descriptive grammar would say that both forms are acceptable because people use both. They are trying to describe usage, not dictate rules.