Change these to have early returns vs. deep if/else structures.