Move isValidForStack to Host

Thanks, @sihil