Only check attributes, when check id is set.