break out isLoggable into method