Fixed check Rep

pitch != null, (issue #10)