make sure client has commits before forEach