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

Signed-off-by: crynobone <crynobone@gmail.com>
Merge pull request #1064 from crynobone/patch/paginate-appends

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