Add if statement to Weight create method so an empty weight table won't cause an error