How to use isVisible()


I try to use isVisible()

 if($site->find('slider')->isVisible() == true)
echo "true";
	echo "false";


the site slider exist and is visible but the output is false,
what I do wrong ?

The syntax is fine. Does it really print false or do you get an error?

Oh! sorry :umbrella:
It was my mistake the page was not visible.