def amiroot(dev):
    """ Checks if we are root user or not
        Args: dev(obj): pyez connection to device
        Returns: True if we are root, False if not
        Raises: None
    """
    result = False
    op_cli = dev.rpc.request_shell_execute(command="/usr/bin/whoami")
    if hasattr(op_cli, 'xpath'):
        user = op_cli.xpath('.')
        result = bool(user[0].text.strip('\n') == 'root')
    return result