Added default layout when array is empty