What is this if statement checking? Comments please.