Change type of props.expert

Fixes  #247
I used the == here because it will match both null and undefined