If, at the close of the case for the prosecution at any trial, the court is of the opinion that there is no evidence that the accused committed the offence referred to in the charge or any offence of which he may be convicted on the charge, it may return a verdict of not guilty.