2nd parameter for appends() is optional if 1st parameter is an array

Signed-off-by: crynobone <crynobone@gmail.com>