The if ( hasXXX() ) => getXXX() pattern has always been quite sub-optimal, more over, ```getParameterProvider()``` does call ```hasParameterProvider()``` which makes the overhead even bigger.
Can't we do differently as a general best practice?