validate add() by array, fixes #8