Converting Pseudo to Swift in check for next/alt