Removing a redundant test