There are warnings saying that `!!` is useless on `func`, since it's been already checked to be non-null