Php For Loop Array Key Exists In Laravel