used index 0 for isset

hopefully this will work