Better check for errors on value.
Refactor commit attrs check function.