Refactor asserts

There was a comment about fixing a method. I fixed it and added a deprecation method to the old method.