Detect if we're called from the CLI and output with print_r()