Update isAt() method to not use assert()