You don't need this check since you are making it with the for-loop anyway.