If a bail agent, without good cause, causes the surrender of a defendant to custody before the time specified in the undertaking of bail or the bail bond for the appearance of the defendant, or before any other occasion where the presence of the defendant in court is lawfully required:
NRS 697.330