Useless code removed. Unnecessary check has been removed.