[refix] Checking if package is defined before require it