Use HasSlashAtEnd() for that. Same for the one below.