Removed unnecessary elseif
Size is mandatory for octets
No need to check existence of repeat attribute any more