minor refactoring on 'definedp'

No ``if`` statement is required in the ``definedp`` function, hence removed. All other diffs are related to trailing whitespaces removed.

Thanks.