It can just be removed ot needs to be replaced with is_dir check with module structure needed ?