Instead of continuing I would probably just do if elsif else. Since you only have those paths and they all 'continue'