Fix luv_check_* to actually check for valid structs