Add nth check for 0 index