closes #9, substituted 'is not' with '!=' and added None check for the list