Fix for coverity (redundant condition)