I'd remove this, you don't want to constantly be checking hte number of attributes.