Handle an empty array [fixes #1]