Any person who is accused in this state of a felony or an offense involving family violence, who is released on bail pending trial, and whose bail is subsequently revoked or forfeited for a violation of a condition of release may be denied bail pending trial if a judge or magistrate in this state determines by a preponderance of the evidence at a subsequent hearing that the person violated a condition of release related to the safety of a victim of the alleged offense or to the safety of the community.