Removed sinful superfluous if block.
Added function name to docstring.