consistency on console.warn vs returns