Added method for checking leaves #26

Close #26