can you switch these to if-else instead of unless-else?