'Checks if there is an update available.
It takes as parameters the current version of Spyder and a list of
valid cleaned releases in chronological order (what github api returns
by default). Example: [\'2.3.4\', \'2.3.3\' ...]'

def check_update_available(self, version, releases):

    if is_stable_version(version):
        releases = [r for r in releases if is_stable_version(r)]
    latest_release = releases[0]
    if version.endswith('dev'):
        return (False, latest_release)
    return (check_version(version, latest_release, '<'), latest_release)
