Unnecessary check

Getting rid of an unnecessary check in the code.