put it into assertion - checkIfElementOnPage is only returning true or false