The check logic here seems unnecessary.