Avoid FutureWarning for checking element