Optimize tuplet validation
Remove empty lines
Optimize assert function (tuplet validation)