Need to check nonetype before comparing.