Added helper method in order to detect current link