I think I meant this to copy and comment
Turned out pubvisible() is a general vim faculty!