check if camera open