Fixing issue where landing on root page will try to index an empty array