resolving when immediately on empty array