Modified the function instead to return True/False.