Refactor method to check if denominations are correct.