lib: remove unnecessary checks