Since it gets cast to an array later anyway, would be consistent to cast `$primaryKey` to an array here too.