Added a 'visible' function to check if the element is displayed at present.