This check is redundant. Just use append every time: http://play.golang.org/p/hjQzZ0IGXn