Simplified conditional for expect() argument parsing