Check for presence of console.log before falling back to it