check if `device` exist