How to check if collection exist or not in mongodb ? I have tried in command line it will show empty but same command how do i use it ?

db.system.namespaces.find( { name: 'dev.info' } );