default envs variable in function def to empty array

rather than None. this should make it a little clearer what envs
should be.

for #101