Removed redundant which check