Remove needless is_object check
Merge pull request #4279 from Danizord/hotfix/remove-needless-check

Remove needless is_object check
Merge branch 'hotfix/4279'

Close #4279