Protractor test
<p>I need some help.
This is fragment of my code, i can't return boolean from it("present or not")
, so everything is working incorrectly. where I was mistaken?</p>

<pre><code>describe("first TEST", function () {

    var boolean, parsingAllProfiles, getRandomProfile, randomProfile;

    it("present or not", function () {
        freelan.notFreelancersFound.isPresent().then(function (result) {
            **return boolean = result;**
        })
    })

    if (boolean) {
        console.log("NOTHING!!!!!")
    } else {

        it("array of profiles", function() {
            Promise.resolve(freelan.parsingAllProfilePage()).then(function (profiles) {
                var arrForCheck = freelan.cloneArray(profiles);
                freelan.checkKeywordInProfile(arrForCheck, params.keyword);
                return randomProfile = profiles[Math.floor(Math.random() * profiles.length)];
            })
        });        
    }
});
</code></pre>