Is the worktree prunable with the given options?
A worktree is not prunable in the following scenarios:
valid member will cause this check to be ignored.locked flag will cause this
check to be ignored.If the worktree is not valid and not locked or if the above flags have been passed in, this function will return a positive value.