The calls to array_keys and implode are unnecessary.