Fix check function when check is a list