Rename check_supported to ensure_supported and change to statement function instead of rvalue