You will notice that were often substitutes for was after if when the main clause contains would or could . It's used for "unreal" situations. In your example, the person is not alive today, so the idea is expressed with were instead of was .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.