Would you mind writing this conditional on a single line?