Kernel module - Check whether file (/dev node) exists

Hi, I'm pretty new to kernel coding and I'm working on a device driver that works with an existing framework.

Basically my module will be loaded/unloaded multiple times and I'd like to create a register a class, driver, and create a /dev node on the first load only. The existing framework doesn't allow me to clean up much when my module is unloaded, so I'll just be reusing the earlier /dev node.

Is there a way in the Linux kernel to check whether this dev node already exists? I've seen filp_open but most people caution against opening files from kernel so is there an alternate way of checking? Is it possible/easier to check whether the driver or class exist?

Thanks a lot,
ThomasBrez