Fix missing `has` check