refactor #method_missing with ternary and || operator