client])) { $data->client_id = $maps[ENTITY_CLIENT][$data->client]; } else { return false; } return new Item($data, function ($data) use ($maps) { return [ 'client_id' => $data->client_id, 'first_name' => $data->first_name, 'last_name' => $data->last_name, 'email' => $data->email, 'phone' => $data->office_phone ?: $data->mobile_phone, ]; }); } }