I'd be tempted to put a check in here to ensure the z_column was found and to raise a suitable exception with a helpful message if it wasn't.