This is your function. All I wanted to say is that you have to be FULLY visible, so is_visible will return possitive result (-> you are visible). If only some part of you is visible, then you are still not visible, and the message will be
"not visible".