Loop only if is array

Close #3