Check attr value before prop in attr2